@charset "utf-8";
@import "_config";

$color: #108ee9;
label.ucs-checkbox {
  width:auto;
  cursor: pointer;
  display: inline-block;
  font-size: 12px;
  margin-right: 8px;
  position: relative;
  vertical-align: middle;
  white-space: nowrap;
  text-align: left;
  span {
    display: inline-block;
    vertical-align: middle
  }
  &:hover {
    .ucs-checkbox-inner {
      border: 1px solid $color;
    }
  }
  .ucs-checkbox-input {
    cursor: pointer;
    vertical-align: middle;
    margin-right: 5px;
    &:checked {
      + .ucs-checkbox-inner {
        background-color: $color;
        border: 1px solid $color;
        &:after {
          display: block;
        }
      }
    }
    &:disabled {
      cursor: not-allowed;
      + .ucs-checkbox-inner {
        background-color: #f5f5f5;
      }
      &:checked {
        + .ucs-checkbox-inner {
          background-color: #f5f5f5;
          border: 1px solid #f5f5f5;
          color: #666;
        }
      }
    }
  }
  .ucs-checkbox-inner {
    background-color: #fff;
    border: 1px solid #d9d9d9;
    display: inline-block;
    width: 12px;
    height: 12px;
    overflow: hidden;
    border-radius: 1px;
    line-height: 22px;
    color: #fff;
    &:after {
      content: "✔";
      font-size: 12px;
      left: 1px;
      position: absolute;
      top: -3px;
      width: 5px;
      display: none;
    }
  }
}
